package cn.itsnkkka;

import java.util.Scanner;

public class Work_06 {

    public static class Car{

        public Car(Integer X, Double Z, String Y) {
            this.X = X;
            this.Y = Y;
            this.Z = Z;
            System.out.println(
                    String.format("%s轮的%s色%s吨汽车将有以下情况:", X, Y, Z)
            );
        }

        // 轮胎个数
        private Integer X;

        // 车身颜色
        private String Y;

        // 车身重量
        private Double Z;

        public Integer getX() {
            return X;
        }

        public String getY() {
            return Y;
        }

        public Double getZ() {
            return Z;
        }

        public void SpeedUp() {
            System.out.println("加速啦!");
        }
        public void SpeedDown() {
            System.out.println("赶快减速!");
        }
        public void Stop() {
            System.out.println("车已停了!");
        }


    }

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int x = scanner.nextInt();
        double z = scanner.nextDouble();
        String y = scanner.next();
        Car c = new Car(x, z, y);
        c.SpeedUp();
        c.SpeedDown();
        c.Stop();
    }
}
